package com.ge.boot07hellostarter.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 配置类，与配置文件绑定
 */
@ConfigurationProperties(prefix = "hello")
@Component
@Data
public class HelloProperties {

    private String name = "defaultName";

    private String age = "20";

    private String email = "default@qq.com";

}
